package com.softer.wxzj.controller;


import com.github.pagehelper.PageInfo;
import com.softer.wxzj.common.entity.CommonResult;
import com.softer.wxzj.common.entity.Page;
import com.softer.wxzj.entity.LogOperation;
import com.softer.wxzj.service.LogOperationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * RoleController class
 * @author zcz
 * @date 2019/1/16
 */
@RestController
@RequestMapping("/logOperation")
@Slf4j
public class LogOperationController {
    @Autowired
    LogOperationService logOperationService;

    @RequestMapping("/delete")

    public CommonResult delete(String id) {
        return logOperationService.delete(id);
    }
    @RequestMapping("/getList")
    public PageInfo<LogOperation> getRoleList(Page page, LogOperation logOperation) {
        return logOperationService.getList(page,logOperation);
    }


}
